<%--
  Created by IntelliJ IDEA.
  User: 17126
  Date: 2022/3/26
  Time: 16:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>验证</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    String name = request.getParameter("name");
    session.setAttribute("name", name);
    String pwd = request.getParameter("pwd");
    if ("1234".equals(pwd) && "user".equals(name))
        response.setHeader("refresh", "1;url=message.jsp");
    else
        response.sendRedirect("login.jsp");
%>
</body>
</html>
